package com.andy.blog.admin.service;

import com.andy.blog.admin.dto.SensitiveDTO;
import com.andy.blog.common.page.PageUtilsDTO;
import com.andy.blog.dal.vo.SensitiveVO;

import java.util.List;

/**
 * Created by andy on 2023/7/21 18:42
 */
public interface SensitiveBusService {

    /**
     * 根据条件查询
     */
    List<SensitiveDTO> selectList(SensitiveVO sensitiveVO);

    /**
     * 过滤敏感词
     *
     * @param text
     * @return
     */
    String filter(String text);

    /**
     * 分页查询
     */
    PageUtilsDTO<SensitiveDTO> selectPage(SensitiveVO sensitiveVO);

    /**
     * 新增
     */
    void add(SensitiveVO sensitiveVO);

    /**
     *
     * @param id
     * @return
     */
    SensitiveDTO selectById(Long id);

    /**
     * 根据Id更新
     */
    void updateById(SensitiveVO sensitiveVO);

    /**
     * 删除
     */
    void deleteById(Long id);

    /**
     * 重置
     */
    void refreshSensitive();
}
